<?php
 /* 
  * @function bm_model.php
  * @author   Aaron Johnson
  * @created  Dec 21, 2007
  */
 
class BM_Model extends Model {

	var $id = '';
	
	function BM_Model()
	{
		parent::Model();
	}
	
	function newBirthmother()
	{
		
	}
	
	function addBirthfather()
	{
		
	}
	
	function getNotes($id)
	{
		return $this->db->from('notes')->join('employees','employees.emp_id = notes.ref_id')->where(array('REF_ID' => $id, 'NOTE_TYPE' => 'bm'))->get()->result();	
	}

	function insertNote($note)
	{
		$this->db->insert('notes', $note);
	}

	function getByName()
	{
		
	}
	
	function getAdvancedSearch()
	{
		
	}
	
}
?>
